<?php
 
   $lot=$_GET["lot"];
   $dbName_2 = "sqlsrv:Server=172.31.3.12,1433;Database=UFDATA_001_2017";   //这里是服务器IP地址和数据库名，端口不是默认的话记得改一下
   $dbUser = "sa";
	$dbPassword = "TDled!2018";    //登陆密码
   $db_2 = new PDO($dbName_2, $dbUser, $dbPassword);   
	$sql_2 = "select clotno from dbo.ldx_seoulInsideMX where InsideboxNO = '".$lot."'";//17620T4003-7250613 菲利浦
	
	$res_2 = $db_2->query($sql_2);
	
	$rdisk_2="";
	$row_2 = null;
	 while ($row_2 = $res_2->fetch()){
	  $rdisk_2.= $row_2['clotno'].",";
	 }
	 print_r($rdisk_2);
	 
 
 
	$db_2 = null;
	$res_2 = null;